import NavBar from '@/components/menus/NavBar';
import { View } from '@tarojs/components';
import Taro, { useLoad } from '@tarojs/taro';
import { useEffect, useState } from 'react';
import { Empty } from '@taroify/core';

export default () => {
  const [type, setType] = useState('0');
  const [title, setTitle] = useState('点赞');
  useLoad(opt => {
    opt && opt.type && setType(opt.type);
    opt && opt.title && setType(opt.title);
  });

  return (
    <NavBar title={title}>
      <View>
        <Empty>
          <Empty.Image src="search" />
          <Empty.Description>还木有收到{title}</Empty.Description>
        </Empty>
      </View>
    </NavBar>
  );
};
